import java.util.Scanner;

 

public class TriangleClassifier1 {

 

    // Method to classify the triangle based on its sides
    // 根据边来确定三角形
    public static String classifyTriangle(int a, int b, int c) {

        // Check if the sides form a valid triangle using the triangle inequality theorem

        if (a + b > c && a + c > b && b + c > a) {

            if (a == b && b == c) {
                // 等边
                return "Equilateral";

            } else if (a == b || b == c || a == c) {
                // 等腰
                return "Isosceles";

            } else {
                // 不等边
                return "Scalene";

            }

        } else {

            return "Not a valid triangle";

        }

    }

 

    public static void main(String[] args) {

        Scanner scanner = new Scanner(System.in);

 

        // Input 3-tuple for triangle sides

       System.out.print("Enter the first side: ");

        int side1 = scanner.nextInt();

       System.out.print("Enter the second side: ");

        int side2 = scanner.nextInt();

       System.out.print("Enter the third side: ");

        int side3 = scanner.nextInt();

 

        // Classify the triangle

        String result = classifyTriangle(side1, side2, side3);

       System.out.println("The triangle is: " + result);

       

       scanner.close();

    }

}